package com.peter.proxy.hkgolden.dao;

//public class TopicDao extends GenericDao<Topic> {
//	
//	public List<Topic> getTopicList() {
//		final Query query = persistenceManager.newQuery("SELECT FROM "+Topic.class.getName() + " WHERE cacheDate > cacheDateParam ");
//		query.declareParameters("java.util.Date cacheDateParam");
//		final Date now = DateUtils.addMinutes(new Date(), -ApplicationContext.cacheMinutes);
//		final List<Topic> topicList = (List<Topic>) (query).execute(now);
//		if (topicList.size() == 0) {
//			return null;
//		}
//		return topicList;
//	}
//
// }
